home *** CD-ROM | disk | FTP | other *** search
/ Your Choice 1 / your choice.zip / your choice / PRGMMING / CX201 / VBCX.BAS < prev    next >
BASIC Source File  |  1994-03-01  |  1KB  |  26 lines

  1. '  Cx interface
  2. '  Copyright (c) 1990-1994 Eugene Nelson, Four Lakes Computing.
  3.  
  4. Declare Function CX_COMPRESS Lib "cxwin.dll" (ByVal method%, obuff As Any, ByVal osize%, ibuff As Any, ByVal isize%, tbuff As Any, ByVal tsize%) As Integer
  5. Declare Function CX_DECOMPRESS Lib "cxwin.dll" (obuff As Any, ByVal osize%, ibuff As Any, ByVal isize%, tbuff As Any, ByVal tsize%) As Integer
  6. Declare Function CX_CRC Lib "cxwin.dll" (buff As Any, ByVal n%) As Integer
  7.  
  8. Global Const CX_ERR_INVALID = (65535 - 0)
  9. Global Const CX_ERR_METHOD = (65535 - 1)
  10. Global Const CX_ERR_BUFFSIZE = (65535 - 2)
  11. Global Const CX_ERR_TEMPSIZE = (65535 - 3)
  12.  
  13. Global Const CXINTSIZE = 2
  14.  
  15. Global Const CX_METHOD1 = (1)
  16. Global Const CX_METHOD2 = (2)
  17. Global Const CX_METHOD3 = (3)
  18. Global Const CX_METHODC = (4)
  19. Global Const CX_METHODD = (5)
  20. Global Const CX_MAX_BUFFER = (65000)
  21. Global Const CX_CSLOP = (300)
  22.  
  23. Global Const CX_C_MINTEMP = (18 * 1024)
  24. Global Const CX_C_MAXTEMP = (65500)
  25. Global Const CX_D_MINTEMP = (7 * 1024)
  26.